import {createRouter,createWebHashHistory}from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path:'/',
            component: () => import('@/view/Start.vue')
            //component: () => import('@/view/Page.vue')
        },
        {
            path: '/admin',
            component: () => import('@/view/Admin.vue'),
            children:[
                {
                    path:'profile',
                    component: () => import('@/view/Admin/AdminProfile.vue')
                },
                {
                    path:'gamelist',
                    component: () => import('@/view/Admin/AdminGameList.vue')
                },
                {
                    path:'editor/:id',
                    component:()=>import('@/view/Admin/AdminEditor.vue'),
                }
            ]
        },
        {
            path:'/page/:id',
            component:()=>import('@/view/Page.vue')
        }
    ]
});

export default router;